package com.sbox;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import com.sbox.util.SBoxLog;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class AboutActivity extends Activity {
	private TitleBar mTitleBar = null;
	private TextView mText1 = null;
	
	@Override
	public void onCreate(Bundle savedBundle)
	{
		super.onCreate(savedBundle);
		setContentView(R.layout.about_view);
		
		mTitleBar = (TitleBar)findViewById(R.id.about_title);
		mTitleBar.getButton1().setVisibility(View.GONE);
		mTitleBar.getButton2().setVisibility(View.GONE);
		
		mText1 = (TextView)findViewById(R.id.about_text1);
		
		try {
			byte[] buf = new byte[1024];
			FileInputStream fis = new FileInputStream("/proc/mounts");
			fis.read(buf);
			mText1.setText( new String(buf) );			
		} catch (Throwable e) {			
			SBoxLog.error(e.getMessage());
		}
		
	}
	
}
